<%= error_messages_for :ticket %>
<% form_for :ticket, :url => change_group_ticket_path(@ticket) do -%>
    Type: <%=h @ticket.ticket_template.name %><br />
    <label for="ticket_number">Number:</label> <%= @ticket.number %><br />
    <label for="ticket_name">Name:</label>
	<%= @ticket.name  %><br />
	
	<label for="ticket_deadline">Deadline: </label><%= @ticket.deadline%>
	<p><%= check_box_tag("send_email", "true", "true") %>
		<label for="send_email"> Send email </label>
	<p><label for="ticket_group">Group:</label><br/>
		<%= select("ticket", "group_id", @groups.collect{ |g| [g.name, g.id]}) %></p>
	<label for="message">Message:</label><br/>
		<%= text_area_tag("message", "", :size => "40x5")  %><br /> 
<br />		<%= submit_tag 'Change' %>
<% end %>


<%= link_to 'Back', :url => edit_ticket_path(@ticket) %> <br />